{extend name="public/base" /} {block name="title"}
<title>{$article.title}</title>
<meta name="keywords" content="{$article.keywords}">
<meta name="description" content="{$article.description}">{__block__}
<link href="//cdn.bootcss.com/social-share.js/1.0.16/css/share.min.css" rel="stylesheet">
<link href="//cdn.bootcss.com/highlight.js/9.12.0/styles/atom-one-dark.min.css" rel="stylesheet">
<script>
    var sendCommentUrl = "{:url('index/action/comment')}";
    var returnArticleUrl = "{:url('index/index/article',['id'=>$article['id']])}";
</script> {/block} {block name="content"}
<div class="col-sm-8">
    <div class="ibox">
        <div class="ibox-content articleContent">
            <div class="row">
                <div class="col-sm-12">
                    <div class="pull-right">
                        {$article.tid|getTag}
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <div class="text-center article-title">
                        <h1>
                            <eq name="detail.is_original" value="1">[原创]</eq> {$article.title}
                        </h1>
                    </div>
                    <div class="content">
                        {$article.content}
                    </div>
                    <div class="social-share text-center" data-disabled="google,twitter, facebook, diandian,linkedin,douban"></div>
                    <div>
                        <ul class="copyright">
                            <li><strong>本文作者：</strong>{$article.author}</li>
                            <li><strong>本文链接：</strong> {:url('index/index/article',['id'=>$article['id']],'html',true)}
                            </li>
                            <li><strong>版权声明： </strong>本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/3.0/"
                                    rel="external nofollow" target="_blank">CC BY-NC-SA 3.0</a> 许可协议。转载请注明出处！</li>
                        </ul>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="prev-next">
                        <div class="prev pull-left">
                            {$article.id|getArticlePos='prev'}
                        </div>
                        <div class="next pull-right">
                            {$article.id|getArticlePos='next'}
                        </div>
                    </div>
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="row">
                <div class="col-sm-12">
                    {include file="public/comment"/}
                </div>
            </div>
        </div>
    </div>
</div>
{/block} {block name="script"}{__block__}
<script src="//cdn.bootcss.com/social-share.js/1.0.16/js/jquery.share.min.js"></script>
<script src="//cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js"></script>
<script>
    $(function () {
        hljs.initHighlightingOnLoad();
        $(".content img").addClass('img-responsive');
        $('.social-share').share();
    });
</script> {/block}